<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="util" uri="/WEB-INF/kdd-util.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<sec:authorize access="isAuthenticated()">
    <div>
        <ul class="nav nav-list">
            <li class="nav-header">
                <spring:message code="msg.actions" />
            </li>
            <li <c:if test="${util:isActiveMenu('settings', pageContext.request.requestURI)}">class="active"</c:if>>
                <a href="<c:url value='/settings'/>"><spring:message code="msg.settings" /></a>
            </li>
            <sec:authorize access="hasRole('ROLE_ADMIN')">
                <li <c:if test="${util:isActiveMenu('admin', pageContext.request.requestURI)}">class="active"</c:if>>
                    <a href="<c:url value='/admin/user'/>"><spring:message code="msg.administration" /></a>
                </li>
            </sec:authorize>
        </ul>
    </div>
</sec:authorize>